package com.erp.auto.mapper;

import com.erp.auto.domain.dto.ErrorProductDto;
import com.erp.auto.domain.dto.RestartProjectDto;
import com.ruoyi.auto.api.domain.ErpAutoPulishProductProjectTask;
import com.erp.auto.domain.ErpAutoUnshelfProductLog;
import com.erp.auto.domain.vo.ErpAutoPulishProductProjectTaskVo;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 自动化上架计划Mapper接口
 *
 * @author erp
 * @date 2023-12-25
 */
public interface ErpAutoPulishProductProjectTaskMapper extends BaseMapperPlus<ErpAutoPulishProductProjectTaskMapper, ErpAutoPulishProductProjectTask, ErpAutoPulishProductProjectTaskVo> {

    List<ErpAutoPulishProductProjectTask> failedTaskRestartByDay();

    List<ErpAutoPulishProductProjectTask> selectListByUnshelf(@Param("log") ErpAutoUnshelfProductLog log);

    List<RestartProjectDto> getRestartProjectList();

    ErpAutoPulishProductProjectTask selectOneOld(@Param("product") Long productId);

    List<String> repeatPublishErrorByStoreId(@Param("storeId") Long storeId);

    ErrorProductDto queryRankStatisticsByStoreIdAndAeProduct(@Param("aeProductId") Long aeProductId);

    List<String> unshelfErrorAndCreateTaskNew();

    Integer resetActivityStatusByStoreUserName(@Param("storeUserName") String storeUserName);

}
